
<?php echo $this->Session->flash(); ?>



<table  id="tabla" class="tabla" >

    <thead>
        <tr>
            <th>ID</th>
            <th>NOMBRE</th>
            <th></th>
            <th></th>
        </tr>
    </thead>
    <?php foreach ($group as $usuario): ?>
        <tbody>
            <tr>
                <td><?php echo $usuario['Group']['id'] ?></td>
                <td><?php echo $usuario['Group']['name'] ?></td>
                <td><?php echo $ajax->link("Editar ", array('controller' => 'Groups', "action" => "edit",$usuario['Group']['id']), array('update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading')) ?> </td>
                <td><?php echo $ajax->link("Eliminar ", array('controller' => 'Groups', "action" => "delete",$usuario['Group']['id']), array('update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading'),'¿Desea borrar el registro?') ?>  </td>
     
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>

<legend><?php echo $ajax->link("Agregar Grupo ", array('controller' => 'Groups', "action" => "add"), array('update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading')) ?></legend>




